package com.xuecheng.api;

import com.xuecheng.framework.domain.cms.CmsSite;
import com.xuecheng.framework.domain.cms.CmsTemplate;
import com.xuecheng.framework.domain.cms.request.QuerySiteRequest;
import com.xuecheng.framework.domain.cms.request.QueryTemplateRequest;
import com.xuecheng.framework.domain.cms.response.SiteResult;
import com.xuecheng.framework.domain.cms.response.TemplateResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.hibernate.sql.Template;

public interface CmsTemplateControllerApi {
    //获取模板列表
    @ApiOperation("获取模板列表")
    public QueryResponseResult findList(int page, int size, QueryTemplateRequest templateRequest);

    //新增模板
    @ApiOperation("新增模板")
    public TemplateResult add(CmsTemplate cmsTemplate);

    //根据id查询
    @ApiOperation("根据id查询")
    public CmsTemplate findById(String id);

    //修改模板信息
    @ApiOperation("修改模板信息")
    public TemplateResult edit(String id, CmsTemplate cmsTemplate);

    //删除模板信息
    @ApiOperation("删除模板")
    public ResponseResult delete(String id);
}
